package com.fang.decorator;

import com.fang.decorator.bo.SubmitOrderBo;

/**
 * @author fanglingxiao
 * @version 1.0
 * @description 装饰者模式test
 * @date 2022/4/23 3:14 下午
 **/
public class TestDecorator {
    public static void main(String[] args) {
        OrderTradeComponent component = new MallOrderTradeComponent();
        component = new B2cOrderTradeDecorator(component);
        SubmitOrderBo bo = new SubmitOrderBo();
        component.convertSubmitOrder(bo);
        System.out.println(bo);
    }
}
